package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.feign.fallback.SeckillFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 马迎迎
 * @Title: SeckillFeignService
 * @Package com.atguigu.gulimall.product.feign
 * @Description: TODO(添加描述)
 * @date 2021年06月02日 20:23
 */
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignServiceFallback.class)
//@FeignClient(value = "gulimall-seckill")
public interface SeckillFeignService {
    @GetMapping("/sku/seckill/{skuId}")
    public R getSkuSeckillInfo(@PathVariable Long skuId);
}
